@import "compass";

*{
    margin: 0;
    padding: 0;
    font: 12px 'Segoe UI', 'Microsoft YaHei', 微软雅黑, 'STHei', 华文黑体, sans-serif;
}
form, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, p{
    list-style: none outside none;
}
a{
    text-decoration: none;
    outline: none;
    &:hover{
        text-decoration: none;
    }
    img{
        border: none;
    }
}
.fr{
    float: right;
}
.fl{
    float: left;
}
.disn{
    display: none;
}
form{
    padding: 0 15px;
}

/* webkit滚动条样式 */
::-webkit-scrollbar-track-piece{
    background-color: #f5f5f5;
    border-left: 1px solid #d2d2d2;
}
::-webkit-scrollbar{
    width: 13px;
    height: 13px;
}
::-webkit-scrollbar-thumb{
    background-color: #c2c2c2;
    background-clip: padding-box;
    border: 1px solid #979797;
    min-height: 28px;
    &:hover{
        border: 1px solid #636363;
        background-color: #929292;
    }
}

.nav.nav-title-bar{
    margin: 10px 0 15px;
    li:first-child{
        margin-left: 15px;
    }
}

/* 壁纸设置 */
.wallpapertype{
    width: 500px;
    height: 34px;
    line-height: 34px;
    margin: auto;
    margin-top: 10px;
}
.wallpaper{
    width: 500px;
    margin: 10px auto;
    ul{
        width: 510px;
        li{
            width: 160px;
            height: 120px;
            float: left;
            margin-right: 10px;
            border: 5px solid #fff;
            background: #fff;
            cursor: pointer;
            &:hover{
                border-color: #9ff;
                background: #9ff;
            }
            div{
                width: 150px;
                height: 30px;
                line-height: 30px;
                text-align: center;
            }
        }
    }
}
.wapppapercustom{
    width: 500px;
    margin: auto;
    margin-top: 10px;
    border: 1px solid #ccc;
    .tip{
        padding: 10px;
    }
    .view{
        width: 480px;
        height: 250px;
        margin: 0 auto;
        ul{
            margin: 0;
            li{
                border: 5px solid #fff;
                overflow: hidden;
                float: left;
                width: 160px;
                height: 115px;
                margin-bottom: 10px;
                position: relative;
                a{
                    display: none;
                    position: absolute;
                    z-index: 2;
                    top: -5px;
                    right: -5px;
                    text-decoration: none;
                    width: 48px;
                    height: 32px;
                    line-height: 32px;
                    text-align: center;
                    background-color: #ccc;
                }
                &:hover{
                    border-color: #ccc;
                    cursor: pointer;
                    a{
                        display: block;
                    }
                }
            }
        }
    }
}
.wapppaperwebsite{
    width: 500px;
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
}

/* 皮肤设置 */
.skin{
    width: 550px;
    margin: auto;
    margin-top: 10px;
    li{
        width: 266px;
        height: 166px;
        margin: 0 4px 10px 4px;
        float: left;
        border: 5px solid #fff;
        background: #fff;
        cursor: pointer;
        position: relative;
        &:hover{
            border-color: #9ff;
            background: #9ff;
        }
        div{
            display: none;
            width: 48px;
            height: 48px;
            background: url(../img/selected.png) no-repeat;
            position: absolute;
            right: -15px;
            bottom: -15px;
        }
        &.selected div{
            display: block;
        }
    }
}

/* 应用市场 */
.sub-nav{
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 100%;
    .category-box{
        position: absolute;
        top: 0;
        bottom: 50px;
        width: 150px;
        overflow: auto;
        a{
            @include ellipsis();
            display: block;
            margin: 10px 10px 0 10px;
            padding: 0 10px;
            height: 30px;
            line-height: 30px;
            color: #666;
            text-decoration: none;
            &.active,
            &:hover{
                background-color: #337ab7;
                color: #fff;
            }
        }
    }
    .myapp-box{
        position: absolute;
        left: 0;
        bottom: 0;
        width: 150px;
        height: 50px;
        a{
            display: block;
            margin: 10px;
            padding: 0 10px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            font-size: 14px;
            color: #666;
            background-color: #eee;
            text-decoration: none;
            &.active,
            &:hover{
                background-color: #337ab7;
                color: #fff;
            }
        }
    }
}
.main-wrap{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 150px;
    background-color: #eee;
    .app-content{
        position: absolute;
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 15px;
        background-color: #fff;
        .app-list{
            position: absolute;
            top: 65px;
            bottom: 65px;
            left: 15px;
            right: 15px;
            overflow: auto;
            .app{
                float: left;
                width: calc(20% - 12px);
                height: 170px;
                background-color: #eee;
                margin-right: 15px;
                margin-bottom: 15px;
                &:nth-child(5n){
                    margin-right: 0;
                }
                img{
                    display: inherit;
                    width: 60px;
                    height: 60px;
                    margin: 20px auto 15px;
                }
                .title{
                    @include ellipsis();
                    height: 20px;
                    line-height: 20px;
                    margin: 0 10px;
                    text-align: center;
                    color: #0e4f67;
                }
                .btns{
                    margin-top: 15px;
                    text-align: center;
                }
            }
        }
        .pagination-box{
            position: absolute;
            left: 15px;
            right: 15px;
            bottom: 0;
            height: 65px;
            text-align: center;
        }
    }
}

/* 应用管理 */
.title-bar{
    border-bottom: 2px solid #ddd;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    width: 100%;
    padding: 10px;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
}
.bottom-bar{
    border-top: 1px solid #ddd;
    background: #f2f2f2;
    width: 100%;
    padding: 10px;
    position: fixed;
    z-index: 999;
    left: 0;
    bottom: 0;
}
.creatbox{
    position: absolute;
    top: 54px;
    bottom: 55px;
    left: 0;
    right: 0;
    overflow: auto;
    > .panel{
        border: 0;
        box-shadow: none;
    }
    .shortcutview img{
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }
    .shortcut-selicon{
        a{
            display: block;
            float: left;
            padding: 5px;
            &:hover{
                background: #ddd;
            }
        }
        img{
            float: left;
            width: 36px;
            height: 36px;
        }
    }
}

/*权限管理*/
.permissions_apps{
    width: 100%;
    float: left;
    clear: right;
    .app{
        width: 48px;
        height: 48px;
        margin: 0 10px 10px;
        float: left;
        position: relative;
        img{
            width: 48px;
            height: 48px;
        }
        .del{
            @include border-radius(10px);
            display: none;
            position: absolute;
            right: -6px;
            top: -6px;
            text-align: center;
            font-size: 12px;
            width: 20px;
            height: 20px;
            line-height: 20px;
            cursor: pointer;
            background: #e6110e;
            color: #fff;
        }
        &:hover .del{
            display: block;
        }
    }
}
.alert_addapps{
    width: 360px;
    height: 300px;
    margin: auto;
    overflow: auto;
    .app{
        width: 48px;
        height: 48px;
        margin: 10px 10px 20px 10px;
        float: left;
        position: relative;
        cursor: pointer;
        img{
            width: 48px;
            height: 48px;
        }
        .name{
            width: 100%;
            height: 24px;
            line-height: 24px;
            text-align: center;
            overflow: hidden;
        }
        .selected{
            display: none;
            position: absolute;
            width: 16px;
            height: 16px;
            right: 0;
            bottom: 0;
            background: url(../img/selected.gif) no-repeat;
        }
        &.act .selected{
            display: block;
        }
    }
}